package cn.wf.order.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @Description stream操作消息队列，结合rabbitmq,先建接口
 * @Author 万飞
 * @Date 2018/8/12 2:17
 */
public interface StreamClient {

    String INPUT = "myMessage1";

    String INPUT2 = "myMessage2";

    @Input(StreamClient.INPUT)
    SubscribableChannel input();

    @Output(StreamClient.INPUT2)
    MessageChannel output();
}
